import { configureStore } from '@reduxjs/toolkit';
import projectsReducer from './projects/projectsSLice';
import tasksReducer from './tasks/tasksSlice';
import columnsReducer from './columns/columnsSLice';

const store = configureStore({
  reducer: {
    projects: projectsReducer,
    tasks: tasksReducer,
    columns: columnsReducer
  }
});

export default store;
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
